home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 1 / BBS in a box - Trilogy I.iso / Files / Publish / A / Alpha.5.58 / Help / Alpha Commands next >
Encoding:
Text File  |  1993-08-28  |  27.1 KB  |  558 lines  |  [TEXT/ALFA]

  1. ==============================================================================
  2. = Alpha Commands
  3. ==============================================================================
  4.  
  5. In this list of routines, text between '<' and '>' is a placeholder for a 
  6. required parameter, text between '[' and ']' is a placeholder for an 
  7. optional parameter, and the '|' signifies a choice of two or more 
  8. alternatives.  A '+' signifies that the previous symbol can be present one 
  9. or more times, while a '*" means zero or more times.  Some commands have no 
  10. parameters, and are only expected to be called interactively.
  11.  
  12.  
  13.  
  14. The following are Alpha-specific tcl routines:
  15.  
  16. • abortEm - aborts whatever is currently happening
  17. • addMenuItem [-m] [-l <meta-characters>] <menu name> <item name> - Convert
  18.   item to menu form and add to specified menu. If '-m' specified, menu 
  19.   form conversion not done. The '-l' option allows you to use menu meta 
  20.   characters as text of menu items. If the '-l' option is used, the 
  21.   <meta-characters> string is interpreted for menu item attributes, and 
  22.   meta-characters in <item name> are included in the menu item text 
  23.   literally. For example: 
  24.       addMenuItem -m -l "/B" "Hello/C" 
  25.   would appear as the text "Hello/C" in the menu, and have "B" as its 
  26.   command equivalent.
  27. • alertnote message_string
  28.   This command will display message_string in a standard Macintosh alert box.
  29. • alphaHelp - display Alpha help.
  30. • ascii (see bindings).
  31. • askyesno prompt
  32.   This command will display a Macintosh alert box with 'prompt' displayed
  33.   with the push buttons Yes, No, Cancel. The command will return the 
  34.   string "yes", "no", or "cancel".
  35. • backColor - set background color
  36. • backwardCharSelect - extends selection one char back
  37. • backwardChar - moves insertion one char back
  38. • backwardDeleteWord - deletes previous word
  39. • backwardWord - moves insertion one char back
  40. • balance - selects smallest set of parens, braces, or 
  41.   brackets that encloses the current selection
  42. • beep
  43. • beginningBufferSelect - extend selection to the 
  44.   beginning of the buffer
  45. • beginningLineSelect - extend selection to the 
  46.   beginning of the line
  47. • beginningOfBuffer - move insertion to the beginning 
  48.   of the buffer
  49. • beginningOfLine - move insertion to the beginning of 
  50.   the line
  51. • bind  (see bindings)
  52. • blink <pos> - blink cursor at 'pos'
  53. • breakIntoLines <string> - return 'string' with 
  54.   carriage returns and spaces inserted to satisfy 
  55.   'leftFillColumn' and 'fillColumn' variables.
  56. • bringToFront <winName> - Bring named window to front.
  57. • capitalizeRegion - capitalize all words in selected 
  58.   region 
  59. • capitalizeWord - capitalize word
  60. • cd [directory]
  61.   This command will set the current working directory to "directory". The directory 
  62.   argument may or may not end with a colon. The working directory is the directory 
  63.   in which file names that contain no colons (folders) will be located with file related 
  64.   commands. No argument means Alpha's home directory.
  65. • centerRedraw - redraw window with current line in 
  66.   the middle.
  67. • clear - clear selected text
  68. • closeAll - close all windows
  69. • colors <fore red> <fore green> <fore blue> <back red> <back green> <back blue>
  70. • copy - copy region
  71. • copyFile <fromName> <toName>
  72.   This command will copy the file fromName and name the new file toName, 
  73.   overwriting any existing file. This command copies both data forks, and 
  74.   the Finder information. 
  75. • createTagFile - searches all files in current file set 
  76.   and saves the locations of any function declarations
  77.   in a file called 'cTAGS'.
  78. • createTMark <name> <pos> - create a temporary 'mark' 
  79.   at location 'pos'. 
  80. • ctime <time>
  81.   This command will return a UNIX time string of the format "Wed Feb 19 
  82.   22:43:36 1992". The parameter time is in Macintosh seconds, and would be the 
  83.   result of a now or file mtime command or the like.
  84. • currentPosition - displays current and total bytes.
  85. • cut - deletes and saves region
  86. • deleteChar - delete char AFTER cursor
  87. • deleteMenuItem [-m] <menu name> <item name> - Convert item to menu form 
  88.   and delete from specified menu. If '-m' specified, menu form conversion 
  89.   not done. 
  90. • deleteSelection - delete current position, don't save
  91. • deleteWord - delete word after cursor
  92. • describeBinding - display the binding of the next typed key sequence. 
  93. • deleteText <pos1> <pos2> - remove text between 'pos1' 
  94.   and 'pos2'
  95. • displayMode <mode> - Up to four characters of the 'mode' string are 
  96.   displayed in the status line at the bottom of a window.
  97. • dosc [<-c 'sign' | -n appName>] [-k 'clas'] [-e 'evnt'] <-s string | -f fileName> [<-t timeout|-r>]
  98.   Send an AppleEvent, by default class 'misc', event 'dosc'.
  99.    -c 'sign' 
  100.            "sign" is a four-letter creator signature of a running application.
  101.    -n appName
  102.            "appName" is the name of a running application.
  103.    -k 'clas'
  104.            "clas" is a four-letter event class.
  105.    -e 'evnt'
  106.            "evnt" is a four-letter event class.
  107.    -s string
  108.            "string" is the text of a script to send to the other app.
  109.    -f fileName
  110.            "fileName" is the complete or relative pathname of a file the other 
  111.            application should execute.
  112.    -t timeout
  113.            "timeout" is the number of ticks Alpha should wait for a response. A 
  114.            timeout of "0" means wait forever.
  115.    -r
  116.            Do not wait for reply.
  117.    If neither of the '-c' and '-n' options is chosen, the PPC Browser is 
  118.    used. Either '-s' or '-f' must be chosen. Thus, you can have "Alpha 
  119.    5.02" and "Alpha 5.02 Copy" sending Apple events to each other, or they 
  120.    can send events to a remote server such as Apple's ToolServer. 
  121.    "$HOME:Tcl:UserCode:createStuffitArchive.tcl" contains examples of 
  122.    controlling Stuffit Deluxe via this command.
  123. • downcaseRegion - changes all uppercase letters to 
  124.   lowercase in current region
  125. • downcaseWord - changes all uppercase letters to 
  126.   lowercase in current word
  127. • dumpColors - dump current foreground and background
  128.   colors into the current buffer in Alpha-readable
  129.   format.
  130. • dumpMacro - prompts for a name and then dumps a tcl proc representation 
  131.   of the current keyboard macro into the current window.
  132. • echo <string>* - echo the strings (used 
  133.   in shells).
  134. • edit <name> [-r] [-m] - Open a file in a new window. '-r' means open 
  135.   the file read-only. '-m' means omit the function titlebar menu and  
  136.   present only the marks titlebar menu, which is labeled with the 
  137.   contents of 'markLabel'.
  138. • endBufferSelect - extend selection to the end of the 
  139.   buffer
  140. • endKeyboardMacro - stop recording keyboard macro
  141. • endLineSelect - extend selection to the end of line
  142. • endOfBuffer - move insertion to the end of the buffer
  143. • endOfLine - move insertion to the end of the line
  144. • exchangePointAndmark - exchange the current 'mark' 
  145.   w/ the current insertion point
  146. • execute - prompt user for a function or macro. The 
  147.   tab key acts as a "completion" command.
  148. • executeKeyboardMacro - execute the current keyboard 
  149.   macro
  150. • fileInfo - prompts for a file, and displays type, 
  151.   creator, sizes of both data and resource forks, last
  152.   modification time, and creation time
  153. • fileRemove - prompts for a file, and removes it
  154. • findTag - prompt user for a function name and attempt 
  155.   to use the file 'cTAGS' to locate the function's 
  156.   definition
  157. • find - bring up the find dialog
  158. • findFile - open a file in a new window
  159. • foreColor - set foreground (text) color
  160. • forwardCharSelect - extend selection one character 
  161.   forward
  162. • forwardChar - move insertion one character forward
  163. • forwardWord - move insertion one word forward
  164. • freeMem - give a rough approximation of the current 
  165.   memory reserves of ALPHA
  166. • get_directory
  167.   This command will display a standard Macintosh file dialog and request the user 
  168.   select a folder. The command will return the selected folder's full path name, or an 
  169.   empty string if the Cancel button was selected.
  170. • getAscii - displays the ASCII code for character at 
  171.   current insertion point
  172. • getenv <varname>
  173.   This command will return the value of the environment variable varname. 
  174.   Environment variables are initialized by reading the file •tclenv. The environment 
  175.   file has the format varname=value as in the following example:
  176.  
  177.     TERM=vt100
  178.     TCLINIT=::tcl:TclInit.tcl
  179.     TCLDEFAULT=
  180.     TEST=TEST
  181.     TCLPATH=::tcl:tclsh:tclsrc
  182.  
  183. • getfile <prompt>
  184.   This command will display an SFGetFile() and return the full path name of the 
  185.   selected file, or an empty string if CANCEL button was selected.
  186. • getfinfo <fileName>
  187.   This command will display the standard Macintosh file information in the form:
  188.   "'aeQL' 'QUIL' lvbsIdm 02/17/92 23:57:12 02/19/92 22:43:36 0,156 219 0".
  189.   The fields are the fdCreator, fdType, fdFlags, flCreationDate, flCreationtime, 
  190.   flModDate, flModTime, fdLocation.H,V, dataForlLength, rsrcForkLength, 
  191.   respectively. The fdFlags field uses characters to represent bits:
  192.     l/L    not locaked/Locked
  193.     v/V    visible/notVisible
  194.     b/B    not bundled/Bundled
  195.     s/S    not system/System
  196.     i/I    not initialized/Initialized
  197.     d/D    not desktop/Desktop
  198.     m/M    not sharable/sharable
  199. • getGeometry - return a TCL list containing the left 
  200.   edge of the current window, the top, the width, and
  201.   height.
  202. • getline <prompt> <default>
  203.   This command will display a Macintosh alert box with prompt displayed, a 
  204.   text edit field with default initially in the field, and with the push 
  205.   buttons OK, Cancel.. The command will return the text entered into the 
  206.   text edit field by the user, or an empty string if the user selected the 
  207.   Cancel button. 
  208. • getMainDevice - return a list containing the left, top, right, and 
  209.   bottom of the rectangle defining the main device.
  210. • getMark - return the current mark.
  211. • getPathName - prompt the user with an SFGetFile dialog and return 
  212.   complete pathname.
  213. • getPos - return the current insertion point
  214. • getScrap - returns system TEXT scrap.
  215. • getSelect - return the currently selected text, if 
  216.   any.
  217. • getTMarks - Return a list of temporary marks. Each item of the returned 
  218.   list is a sublist containing the mark name, the complete pathname of the 
  219.   mark, and the start and finish of the selection named by the mark. The 
  220.   following is an example of the result: 
  221.  
  222.     {{temp1 External:file.c 1312 1315} {temp2 Internal:it.h 111 111}} 
  223.  
  224. • getText <pos1> <pos2> - return the text between 'pos1' 
  225.   and 'pos2'.
  226. • glob [-i] [-t <TYPE>] [-c <CRTR>]
  227.   The original glob provided by the UNIX version of tcl was not quite 
  228.   adequate for the more complex Macintosh file system. Issues such as 
  229.   invisible file handling, Finder type and creator filtering, and space 
  230.   handling in file names. Release 6 of tcl has dealt with the original 
  231.   problem with spaces in filenames, but the following options are provided 
  232.   to deal with additional Macintosh issues. 
  233.  
  234. Anyhow, the new glob now takes several options. They are:
  235.     -i    This option causes glob to list invisible files also.
  236.     -t TYPE    This option causes glob to only list file with the 
  237.         indicated Finder file typeTYPE. This option may be 
  238.         used with the -c option.
  239.     -c CRTR    This option causes glob to only list file with the 
  240.         indicated Finder file creatorCRTR. This option may 
  241.         be used with the -t option.
  242.         Also note that the original glob would skip dot files
  243.         (i.e., file names the begin with a period) 
  244.         in the listing, unless the pattern began with a period.
  245.         Tickle extends this concept one step further on the
  246.         Macintosh, and skips spot files (i.e., file names that 
  247.         begin with '•'), unless the pattern starts with a spot.
  248. • goto <pos> - goto the position 'pos'.
  249. • gotoLine - go to a line number
  250. • gotoMark - goto named mark, use 'mark' in macros.
  251. • gotoTMark <name> - goto the temporary mark 'name'.
  252. • enableMenuItem <menuName> <item text> <on|off> - Either enable or 
  253.   disable the menu item of user menu 'menuName' that has text '<item 
  254.   text>'. Note that unless the menu is not only created, but also already
  255.   inserted, this command has no effect. 
  256. • icon [-f <winName>] [-c|-o|-t|-q] [-g <h> <v>] - Having to do w/ 
  257.   iconifying windows. '-c' means close (iconify) window, '-o' open, '-t' 
  258.   toggle open/close, '-q' returns either a '1' for an iconified window or a 
  259.   '0' for an uniconified window, and '-g' moves the icon to horizontal 
  260.   position <h> and vertical position 'v'. Options are executed as they 
  261.   are parsed, so the '-f' option, if present, should always be first. 
  262. • includeFile - expand the current selection to include 
  263.   the suffix and use the var 'includePath' to try to 
  264.   find the include file. 
  265. • indentLine - semi-intelligent indent. If cursor is
  266.   before first non-white space of line, the line is
  267.   indented and the selection is placed at the start
  268.   of the non-white space text
  269. • insertAscii - prompts for an ASCII code and inserts
  270.   into text.
  271. • insertFile - prompts for a file name and inserts the
  272.   corresponding file into the current window. Not
  273.   undoable.
  274. • insertMenu <name> - insert the previously created user menu 'name' into 
  275.   the menuBar. 
  276. • insertPathName - present the user w/ a SFGetFIle dialog 
  277.   and paste the complete path-name of the chosen file
  278.   into the current window
  279. • insertText [-w <win name>] <text>* - Insert 'text' at the current 
  280.   insertion point.
  281. • insertToTop - make the line that the insertion point 
  282.   is on the first line shown, and display the current 
  283.   line number along w/ the total number of lines in file
  284. • isearch - incremental search: searches w/o a dialog,
  285.   searches as you type the search pattern. Does not do
  286.   regular expression searches. 'matchWords' 
  287.   automatically set to false.
  288. • iterationCount - allows actions to be repeated many 
  289.   times. "option-u 44 =" inserts 44 '='s into current 
  290.   window. Also can be used to execute any function or 
  291.   macro (including the keyboard macro) many times.
  292. • keyAscii - insert ascii representation (in decimal)
  293.   of the keydown event, plus a modifier string, if 
  294.   necessary.
  295. • keyCode - insert the key code along w/ a string 
  296.   representing and modifiers into the current window.
  297.   Can be used to create bindings in 'Alphabits'.
  298. • killLine - kill text from insertion point to the end 
  299.   of the line. If the line has no text, delete the line 
  300.   and move succeeding lines up one.
  301. • killWindow - kill current window
  302. • launch -f <name> - launch the named app into the background. Note that 
  303.   for some yet unexplained reason, some applications (MicroSoft Word) 
  304.   won't launch completely in the background. 'launch'ing such 
  305.   applications won't insert the application into any system menu that 
  306.   specifies running applications (although "About the Finder..." will 
  307.   list it. The only way to get to such an app is through Alpha's 
  308.   'switchTo', after which the application will finish launching. The '-f' 
  309.   option gets around this by launching the application in the foreground 
  310.   instead.
  311. • lineStart <pos> - return the position of the start of
  312.   the line 'pos' is on.
  313. • listBindings - list all current bindings.
  314. • listpick [-p <prompt>] <list>
  315.   This command will display a dialog with the list displayed in a List Manager list. If 
  316.   the user presses the Cancel button, an empty string is returned. If the user selects 
  317.   the Open button, or double clicks an item in the list, that item will be returned.
  318. • load - loads hilited text, or entire window if 
  319.   nothing is hilited. 'load'ing means that whatever 
  320.   bindings or macro definitions are present in the 
  321.   loaded text take effect
  322. • lookAt [-w <name>] <pos> - return the 'pos'th character of the 
  323.   current file, or the file named by <name> if the '-w' option is specified.
  324. • markHilite - This is the 'Hilite' from the 'Edit'
  325.   menu. If there is a currently hilited selection, the 
  326.   selection is unhilited, leaving the mark and the 
  327.   insertion point around the old selection. If there 
  328.   is not a selection, the region between the insertion 
  329.   point and the mark is selected.
  330. • markMenuItem <menuName> <item text> <on|off> - Either mark or unmark
  331.   the menu item of user menu 'menuName' that has text '<item text>'. 
  332.   Note that unless the menu is not only created, but also already
  333.   inserted, this command has no effect. 
  334. • matchBrace - moves the insertion point to the 
  335.   character that matches the character after the current 
  336.   insertion point
  337. • matchIt <brace char> <pos> - Return pos of matching brace. Recognizes 
  338.   parenthesis, square brackets, and curly braces.
  339. • maxPos - returns the number of characters in the front
  340.   window.
  341. • menu [-n <name>] [-i <num] [-m] [-p <procname>] <list of menu items> - Defines a 
  342.   new menu named 'name' (if provided w/ '-n' option). The menu is not yet 
  343.   inserted into the menubar. The menu commands may be nested for 
  344.   heirarchical menus, see 'AlphaBits.tcl' for examples. Alpha massages the 
  345.   function names to make them look better in the menus. 
  346.   '-n <num>'    Resource id of icon suite to use for menu title. 'ics#' 
  347.                 is the only resource that is really necessary.
  348.   '-n <name>'    Name the menu. Not necessary for submenus.
  349.   '-m'            No menu form. If not supplied, each menu item is split into 
  350.                   words at each capitalized letter.
  351.   '-p <name>'     The tcl proc named by 'name' is called w/ the menu item's 
  352.                   contents as it's single argument when the item is chosen. If the 
  353.                   proc returns "normal" as its result, the menu item is executed as 
  354.                   if no proc had been specified.
  355. • message <string> - prints 'string' on the status line.
  356. • mkdir <name> - creates a directory (folder) named 
  357.   'name' in the current directory.
  358. • mousePos - Returns list <row,col> of mouse position, if the mouse is 
  359.   currently over the active window. Otherwise, return error (catch w/ 
  360.   'catch').
  361. • moveInsertionHere - move the insertion point to the 
  362.   first line displayed
  363. • moveWin [win name] <left> <top> - moves current or specified window.
  364. • mtime <time> [long|short|abbrev]
  365.   Returns a date and time string using the Macintosh International Utilities. The 
  366.   long/short/abbrev specification corresponds to the date. These are the following 
  367.   formats:
  368.     short        3/16/92 9:20:46 PM
  369.     abbrev    Mon, Mar 16, 1992 9:20:49 PM
  370.     long        Monday, March 16, 1992 9:20:43 PM
  371. • moveFile <fromName> <toName>
  372.   This command will move the file fromName to toName, overwriting any 
  373.   existing file. The move can not be made across volume (disk drives) 
  374.   boundaries. 
  375. • new - opens an untitled window
  376. • nextLine - move insertion point to next line
  377. • nextLineSelect - extend selection to the next line
  378. • nextLineStart <pos> - return the position of the start 
  379.   of the next line after position 'pos'.
  380. • nextSentence - go to next sentence ("fill.tcl").
  381. • nextWindow - select next window
  382. • now
  383.   Returns the current time as Macintosh seconds. This is the number of seconds that 
  384.   have elapsed since Midnight Jan 1, 1904. Appropriate for input to ctime.
  385. • oneSpace - converts whitespace surrounding insertion
  386.   into a single space.
  387. • openLine - insert a new line following the current 
  388.   one and move the insertion point to it
  389. • pageBack - display prev screenful, move the
  390.   insertion point if 'moveInsertion' enabled
  391. • pageForward - display next screenful, move the
  392.   insertion point if 'moveInsertion' enabled
  393. • pageSetup - display the printing PageSetup dialog.
  394. • paste - insert the last chunk of text created by 'cut' 
  395.   or 'copy'
  396. • posToRowCol <pos> - converts from absolute position to row, col.
  397. • prefixChar - used to further modify the next keystroke 
  398.   combination, in the same manner as using the shift key 
  399.   in the next keystroke
  400. • prevLineSelect - extend selection to the previous line
  401. • prevSentence - go to previous sentence ("fill.tcl").
  402. • prevWindow - select previous window
  403. • previousLine - move insertion point to the previous 
  404.   line
  405. • print - print front window
  406. • processes - returns info of active processes. A list of lists, each 
  407.   sublist contain a file-name, an application signature, the application 
  408.   memory size, and the number of ticks the application has been active.
  409. • prompt <prompt> <default> [<name> <menu item>*] - prompt dialog to 
  410.   the user with a prompt string and a default value. The prompt dialog can 
  411.   optionally include a popup menu specified by 'name' and the succeeding 
  412.   strings. Selection of the popup menu items inserts the item text into the 
  413.   editable dialog item. 'Prompt' returns the value of the editable item. 
  414.   If the 'Cancel' button is selected, the tcl returns an error and your 
  415.   script will be stopped unless you execute the command from 'catch'.
  416. • putenv <varname> <value>
  417.   This command will set the environment variable varname to value.
  418. • putfile <prompt> <original>
  419.   This command will display an SFPutFile() and return the full path name of the 
  420.   selected file, or an empty string if CANCEL button was selected. Original is the 
  421.   default name displayed for the user.
  422. • putScrap [<string>]+ - Concatenate strings together into the system 
  423.   scrap. The scrap can be appended to through calls of the form 'putScrap 
  424.   [getScrap] " another word"'.
  425. • pwd
  426.   This command will return the current working directory.
  427. • quit - quits ALPHA
  428. • rectMarkHilite - creates a rectangular selection 
  429.   between the mark and the insertion point.
  430. • redo - redo the next action that has been undone but 
  431.   not redone
  432. • removeMark - allows marks to be removed.
  433. • removeMenu <name> - remove menu 'name' from menubar.
  434. • removeTMark <name> - remove temporary mark.
  435. • repeatSearchBackward - repeat search backward
  436. • repeatSearchForward - repeat search forward
  437. • replaceText <pos1> <pos2> [text]+ - replaces the text
  438.   between 'pos1' and 'pos2' with 'text', where 'text' can be any number 
  439.   of arguments. Leaves insertion at end, mark at beginning of inserted 
  440.   text. 
  441. • removeFile <fileName>
  442.   This command will delete the file or folder 'fileName'.
  443. • restoreVars - restore variables to saved state, 
  444.   see 'saveVars'
  445. • revert - revert the file to it's last saved version
  446. • rowColToPos <row> <col> - converts to abosolute position.
  447. • rsearch - reverse incremental search, see 'isearch'.
  448. • save - save current window
  449. • saveAs - save current window with new name
  450. • saveVars - save variable state, see 'restoreVars'
  451. • scrollDownLine - same action as that which occurs when 
  452.   the down arrow in the vertical scrollbar is selected
  453. • scrollLeftCol - same action as that which occurs when
  454.   the left arrow in the horizontal scrollbar is selected
  455. • scrollRightCol - same action as that which occurs when
  456.   the right arrow in the horizontal scrollbar is 
  457.   selected
  458. • scrollUpLine - same action as that which occurs when 
  459.   the up arrow in the vertical scrollbar is selected
  460. • search [-f <num>] [-r <num] [-i <num>] [-m <num] [-n] [-l <limit>] <pattern> <pos> - 
  461.   Searches for 'pattern' from position 'pos'. The '-f', '-r', '-i', and 
  462.   '-m' options allow the 'forward', 'regExpr', 'ignoreCase', and 
  463.   'matchWord' internal variables to be set. The '-l' option allows a search 
  464.   limit to be set. The search fails if the a match is not found totally 
  465.   contained between 'pos' and 'limit'. The '-n' option specifies that a 
  466.   failed search still returns TCL_OK. However, the result of the call is 
  467.   then just an empty string. If the search succeeds, a list of two 
  468.   positions will be returned. The first is the starting position of the 
  469.   match, the second is one past the last character. 
  470. • searchEnter - use current selection for future 
  471.   searches
  472. • searchNext - search next file.
  473. • searchRall - replace all further occurrences in the 
  474.   current file
  475. • searchReplace - replace the current selection
  476. • searchRfa - replace the current selection and find 
  477.   next occurrence
  478. • select <pos1> <pos2> - selects the text between 'pos1' 
  479.   and 'pos2'.
  480. • selEnd - returns the end of the hilited selection, or 
  481.   the current insertion point if no text is selected.
  482. • sendOpenEvent <-n app name> <file name> - Send an open doc event to 
  483.   another currently running application.
  484. • sendToBack <winName> - Sent named window to back.
  485. • setfinfo <fileName> [-a flags] [-c fdCreator] [-t fdTypes]
  486.   This command will set the standard Macintosh file information. The flags setting 
  487.   must be of the same format as displayed by the getfinfo flag.
  488. • setMark - set the current mark to the insertion point
  489. • setFontsTabs - bring up font and tab dialog
  490. • setNamedMark - set named mark
  491. • shadowVar <name> - Associates a Tcl variable with an Alpha variable of 
  492.   the same name. Writes to the Tcl variable automatically are copied to 
  493.   the Alpha variable.
  494. • shell - open the Tcl shell.
  495. • shiftLeftRegion - shifts the current region left a tab
  496. • shiftRightRegion - shift the current region right a 
  497.   tab
  498. • sizeWin [win name] <width> <height> - sets size of current or specified window.
  499. • sortMarks - sorts all marks of open windows, w/o 
  500.   setting the dirty flag. If the files are saved, the 
  501.   marks will be saved in alphabetical order.
  502. • spacesToTabs - convert spaces in selection to tabs
  503. • startEscape - used to further modify the next 
  504.   keystroke combination, in the same manner as using the 
  505.   shift key in the next keystroke
  506. • startKeyboardMacro - start recording keyboard macro
  507. • substituteVars <string> - Takes a single string and
  508.   substitutes for all variables inside it, regardless of
  509.   depth. Unfortunately, you currently need to make 'global var' 
  510.   declarations in the proc you call this for each 'var' that might need 
  511.   to be substituted in the string (see proc.tcl for examples).
  512. • switchTo <appName> - Switches to application 'appName'.
  513. • tab - insert a tab
  514. • tabsToSpaces - convert tabs in selection to spaces.
  515. • tclFileCompletion - completes the previous word as a
  516.   file is in a shell window
  517. • tclResult - displays a dialog showing the result of 
  518.   the last TCL evaluation.
  519. • thinkReference <-t|-l> <think reference page> - Interact with Think 
  520.   Reference 2.0. '-t' retrieves a template without leaving Alpha, '-l' 
  521.   switches to Think Reference and goes to the specified page.
  522. • ticks
  523.   Returns the current TickCount. Ticks are 60ths of a seconds. TickCount is the 
  524.   number of ticks since the Macintosh was started. The command:
  525.         puts stdout [expr "[ticks] / 60"]
  526.   will print the number of seconds since the Macintosh was booted.
  527. • traceFunc on <funcName> <winName> Trace 'funcName', send output to 
  528.                                     'winName'. 
  529.   traceFunc off                        Turn function tracing off.
  530.   traceFunc status                    Display current tracing status.
  531. • undo - undo the last action that has not been undone
  532. • upcaseRegion - convert all lowercase letters to 
  533.   uppercase in the current region
  534. • upcaseWord - convert all lowercase letters to 
  535.   uppercase in the current word
  536. • version - Return string of the form "Alpha Version 5.31, Feb. 15, 1993".
  537. • watchCursor - turns the cursor into a a watch cursor.
  538. • wc <file>... - counts chars, words, lines of input files.
  539. • winNames [-f] - return a TCL list of all open windows. If '-f' option 
  540.   specified, complete pathnames are returned.
  541. • wrap - see the section on "Fill" routines.
  542. • wrapText
  543. • xtclcmd [-f filename] <cmdname> [argument_list]*
  544.   This command will load the external command cmdname and pass it the argument 
  545.   list [ cmdname argument_list... ]. External command are code resources of type 
  546.   XTCL. They may be located in the resource fork of the tickle application, or they 
  547.   may be located in a file named XTCL File in the same directory as the tickle 
  548.   application. If the optional -f filename is included, the external command will first 
  549.   be loaded from filename before the other two files.
  550.   See the appendix for a detailed description of the external tcl command interface. 
  551.   See the accompanying sources for an example of writing an XTCL.
  552. • yank - insert the last piece of deleted text of less
  553.   than 1k. Consecutive deletes are concatenated.
  554.   together.
  555. • zapInvisibles - removes chars < ascii 32, except for
  556.   LF's and CR's.
  557. • zoom - zooms the current window
  558.